package top.chmin.project.cloud.common.column.code.auto;

// field import auto
// #bind.field.codeName#

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.column.code.api.ColumnCodeSelectByFieldCode;
import top.chmin.project.cloud.common.column.code.api.ColumnCodeUpdateByFieldCode;
import top.chmin.project.cloud.common.entity.Page;

/**
 * chmin
 * 2023-12-27 19:40:30
 * cloud-builder
 */
@RestController
public class ColumnCodeController implements
// entity selectInterface auto
// entity searchInterface auto
        ColumnCodeSave,
        ColumnCodeUpdateById,
        ColumnCodeDeleteById,
        ColumnCodeSelectById,
        ColumnCodeSelectPage,
        ColumnCodeSelectByFieldCode,
        ColumnCodeUpdateByFieldCode {

    @Resource
    ColumnCodeService service;

    @Override
    public int save(ColumnCodeSave.Param param) {
        return service.save(param);
    }

    @Override
    public int updateById(ColumnCodeUpdateById.Param param) {
        return service.updateById(param);
    }

    @Override
    public int deleteById(ColumnCodeDeleteById.Param param) {
        return service.deleteById(param);
    }

    @Override
    public ColumnCodeSelectById.Result selectById(ColumnCodeSelectById.Param param) {
        return service.selectById(param);
    }

    @Override
    public Page<ColumnCodeSelectPage.Result> selectPage(ColumnCodeSelectPage.Param param) {
        return service.selectPage(param);
    }

    @Override
    public ColumnCodeSelectByFieldCode.Result selectByFieldCode(ColumnCodeSelectByFieldCode.Param param) {
        return service.selectByFieldCode(param);
    }

    @Override
    public void updateByFieldCode(ColumnCodeUpdateByFieldCode.Param param) {
        service.updateByFieldCode(param);
    }

    // entity select auto

// entity search auto

}
